/*
 * Flowable CMMN REST API
 * # flowable / flowəb(ə)l /    - a compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.  - a lightning fast, tried and tested BPMN 2 process engine written in Java. It is Apache 2.0 licensed open source, with a committed community.  - can run embedded in a Java application, or as a service on a server, a cluster, and in the cloud. It integrates perfectly with Spring. With a rich Java and REST API, it is the ideal engine for orchestrating human or system activities.
 *
 * OpenAPI spec version: v1
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.ibm.risk.irmp.workflow.client.flowable.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;

/**
 * HistoricMilestoneInstanceResponse
 */

public class HistoricMilestoneInstanceResponse {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("elementId")
  private String elementId = null;

  @JsonProperty("timestamp")
  private OffsetDateTime timestamp = null;

  @JsonProperty("caseInstanceId")
  private String caseInstanceId = null;

  @JsonProperty("caseDefinitionId")
  private String caseDefinitionId = null;

  @JsonProperty("url")
  private String url = null;

  @JsonProperty("historicCaseInstanceUrl")
  private String historicCaseInstanceUrl = null;

  @JsonProperty("caseDefinitionUrl")
  private String caseDefinitionUrl = null;

  public HistoricMilestoneInstanceResponse id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(example = "5", value = "")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public HistoricMilestoneInstanceResponse name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(example = "milestoneName", value = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public HistoricMilestoneInstanceResponse elementId(String elementId) {
    this.elementId = elementId;
    return this;
  }

   /**
   * Get elementId
   * @return elementId
  **/
  @ApiModelProperty(example = "milestonePlanItemId", value = "")
  public String getElementId() {
    return elementId;
  }

  public void setElementId(String elementId) {
    this.elementId = elementId;
  }

  public HistoricMilestoneInstanceResponse timestamp(OffsetDateTime timestamp) {
    this.timestamp = timestamp;
    return this;
  }

   /**
   * Get timestamp
   * @return timestamp
  **/
  @ApiModelProperty(example = "2013-04-18T14:06:32.715+0000", value = "")
  public OffsetDateTime getTimestamp() {
    return timestamp;
  }

  public void setTimestamp(OffsetDateTime timestamp) {
    this.timestamp = timestamp;
  }

  public HistoricMilestoneInstanceResponse caseInstanceId(String caseInstanceId) {
    this.caseInstanceId = caseInstanceId;
    return this;
  }

   /**
   * Get caseInstanceId
   * @return caseInstanceId
  **/
  @ApiModelProperty(example = "12345", value = "")
  public String getCaseInstanceId() {
    return caseInstanceId;
  }

  public void setCaseInstanceId(String caseInstanceId) {
    this.caseInstanceId = caseInstanceId;
  }

  public HistoricMilestoneInstanceResponse caseDefinitionId(String caseDefinitionId) {
    this.caseDefinitionId = caseDefinitionId;
    return this;
  }

   /**
   * Get caseDefinitionId
   * @return caseDefinitionId
  **/
  @ApiModelProperty(example = "oneMilestoneCase%3A1%3A4", value = "")
  public String getCaseDefinitionId() {
    return caseDefinitionId;
  }

  public void setCaseDefinitionId(String caseDefinitionId) {
    this.caseDefinitionId = caseDefinitionId;
  }

  public HistoricMilestoneInstanceResponse url(String url) {
    this.url = url;
    return this;
  }

   /**
   * Get url
   * @return url
  **/
  @ApiModelProperty(example = "http://localhost:8182/cmmn-history/historic-milestone-instances/5", value = "")
  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public HistoricMilestoneInstanceResponse historicCaseInstanceUrl(String historicCaseInstanceUrl) {
    this.historicCaseInstanceUrl = historicCaseInstanceUrl;
    return this;
  }

   /**
   * Get historicCaseInstanceUrl
   * @return historicCaseInstanceUrl
  **/
  @ApiModelProperty(example = "http://localhost:8182/cmmn-history/historic-case-instances/12345", value = "")
  public String getHistoricCaseInstanceUrl() {
    return historicCaseInstanceUrl;
  }

  public void setHistoricCaseInstanceUrl(String historicCaseInstanceUrl) {
    this.historicCaseInstanceUrl = historicCaseInstanceUrl;
  }

  public HistoricMilestoneInstanceResponse caseDefinitionUrl(String caseDefinitionUrl) {
    this.caseDefinitionUrl = caseDefinitionUrl;
    return this;
  }

   /**
   * Get caseDefinitionUrl
   * @return caseDefinitionUrl
  **/
  @ApiModelProperty(example = "http://localhost:8182/cmmn-repository/case-definitions/oneMilestoneCase%3A1%3A4", value = "")
  public String getCaseDefinitionUrl() {
    return caseDefinitionUrl;
  }

  public void setCaseDefinitionUrl(String caseDefinitionUrl) {
    this.caseDefinitionUrl = caseDefinitionUrl;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    HistoricMilestoneInstanceResponse historicMilestoneInstanceResponse = (HistoricMilestoneInstanceResponse) o;
    return Objects.equals(this.id, historicMilestoneInstanceResponse.id) &&
        Objects.equals(this.name, historicMilestoneInstanceResponse.name) &&
        Objects.equals(this.elementId, historicMilestoneInstanceResponse.elementId) &&
        Objects.equals(this.timestamp, historicMilestoneInstanceResponse.timestamp) &&
        Objects.equals(this.caseInstanceId, historicMilestoneInstanceResponse.caseInstanceId) &&
        Objects.equals(this.caseDefinitionId, historicMilestoneInstanceResponse.caseDefinitionId) &&
        Objects.equals(this.url, historicMilestoneInstanceResponse.url) &&
        Objects.equals(this.historicCaseInstanceUrl, historicMilestoneInstanceResponse.historicCaseInstanceUrl) &&
        Objects.equals(this.caseDefinitionUrl, historicMilestoneInstanceResponse.caseDefinitionUrl);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, elementId, timestamp, caseInstanceId, caseDefinitionId, url, historicCaseInstanceUrl, caseDefinitionUrl);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class HistoricMilestoneInstanceResponse {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    elementId: ").append(toIndentedString(elementId)).append("\n");
    sb.append("    timestamp: ").append(toIndentedString(timestamp)).append("\n");
    sb.append("    caseInstanceId: ").append(toIndentedString(caseInstanceId)).append("\n");
    sb.append("    caseDefinitionId: ").append(toIndentedString(caseDefinitionId)).append("\n");
    sb.append("    url: ").append(toIndentedString(url)).append("\n");
    sb.append("    historicCaseInstanceUrl: ").append(toIndentedString(historicCaseInstanceUrl)).append("\n");
    sb.append("    caseDefinitionUrl: ").append(toIndentedString(caseDefinitionUrl)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
